<?php

/**
 * PSR-0 загрузчик.
 *
 * @param $className Название класса.
 */
function __autoload($className) {
    require_once __DIR__ . DIRECTORY_SEPARATOR . str_replace('\\', DIRECTORY_SEPARATOR, $className) . '.php';
}

$document = new DOMDocument('1.0', 'UTF-8');
$document->loadXML(file_get_contents('database.xml'));
$database = null;
for ($index = 0; $document->childNodes->length; $index++) {

}



//$xmldoc = DOMDocument::loadXML(file_get_contents('database.xml'));
//$xsldoc = DOMDocument::loadXML(file_get_contents('database.xsl'));
//
//$proc = new XSLTProcessor();
//$proc->registerPHPFunctions();
//$proc->importStyleSheet($xsldoc);
//echo $proc->transformToXML($xmldoc);